﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Discussion-Board/discussion.master" AutoEventWireup="true"
    CodeFile="view-post.aspx.cs" Inherits="forum_view_post" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <section class="title-regular">
        <asp:Literal ID="litTitle" runat="server"></asp:Literal>
    </section>
    <hr />
    <asp:Repeater ID="repViewPosts" runat="server" DataSourceID="ObjectDataSource1">
        <ItemTemplate>
            <article class="desc-featured-content forum-post-list-item">
                <section class="forum-post-list-item-info margin-bottom-single">
                
                    <%# this.GetUserName(Eval("UserId").ToString()) %>
                    wrote on
                    <%# Eval("CreateDate")%></section>
                    
                <%# Server.HtmlDecode(Eval("MessageBody").ToString())%>
               
            </article>
        </ItemTemplate>
        <SeparatorTemplate>
        </SeparatorTemplate>
    </asp:Repeater>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="GetAllActiveForumMessagesByID" TypeName="SocialShare.DAL.Facades.ForumFacade">
        <SelectParameters>
            <asp:RouteParameter Name="postId" DbType="Int32" RouteKey="postId" />
        </SelectParameters>
    </asp:ObjectDataSource>
     <section style="<%= String.IsNullOrEmpty(Utilities.SessionManager.LOGGED_IN_USER_ID)?"visibility:hidden":"visibility:inline;" %>">
    <section class="title-regular margin-top-30">Post your Comment</section>
    <hr />

    <asp:TextBox ID="txtReply" runat="server" TextMode="MultiLine" CssClass="text desc-featured-content forum-post-list-item forum-text-box margin-bottom-single"></asp:TextBox>
        <asp:LinkButton ID="lnbReply" runat="server" CssClass="button blue bottom-push" OnClick="lnbReply_Click">Reply</asp:LinkButton>
   </section>
</asp:Content>
